#include<bits/stdc++.h>
using namespace std;
int n,a[100005];
int b[100005];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	scanf("%d",&n);
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&a[i]);
		b[a[i]]++;
	}
	int s=0,j;
	for(int i=1;i<=100000;i++)
	{
		if(b[i]!=0)
		{
			s+=b[i];
			j=i;
			break;
		}
	}
	for(int i=j+1;i<=100000;i++)
	{
		if(b[i]>s)
		{
			s=b[i];
		}
	}
	printf("%d\n",s);
	return 0;
}
